﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _04_IsThisATriangle
{
    public class Triangle
    {
        public static bool IsTriangle(int a, int b, int c)
        {
            if (a <= 0 || b <= 0 || c <= 0)
                return false;
            return (a + b) > c && (a + c) > b && (b + c) > a;
            //判断是否为三角形
            //return (b + c > a && a + c > b && a + b > c && a * b * c > 0);
        }
    }
}
